<template>
    <view class="pl-30 pr-30">
        <view
            v-for="item in 30"
            :key="item"
            class="c-3 space-between align-center w100 pt-15 pb-15"
            @click="toDetail"
        >
            <view class="flex-auto pr-20 text">
                <text class="text-over-1 ft-30">快来报名，汇杰一千米第一期学院火热招募中</text>
            </view>
            <view class="text ft-26">2025-03-01</view>
        </view>
    </view>
</template>

<script setup>
/**
 * @description 消息列表
 * @author yinzhi
 * @date 2025-03-18
 */
import { defineComponent } from 'vue'

defineComponent({
    name: 'NewsList'
})

const props = defineProps({
    list: {
        type: Array,
        default: () => []
    }
})

// 点击新闻操作
const toDetail = item => {
    uni.navigateTo({
        url: '/pages/message/message-details/index'
    })
}
</script>

<style scoped lang="scss"></style>
